package com.podcstr.dao;

import javax.persistence.EntityManager;
import java.util.List;

/**
 * @author azim
 * @since 5/12/13 
 */
public interface GenericDao<E, I> {

    EntityManager getEntityManager();

    E add(E entity);

    E update(E entity);

    void delete(I id);

    E findById(I id);

    List<E> findAll();

    long count();
}
